package com.weibo.boot.springbootlearn.service.facade.impl;

import com.weibo.boot.springbootlearn.service.facade.ProductService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author panda
 * @version Id: ProductServiceImpl, v 0.1 2020/12/6 9:43 上午 Exp $
 * @description
 */
@Service(version = "${dubbo.service.version}")
public class ProductServiceImpl implements ProductService {

    @Value(value = "${spring.application.name}")
    private String serviceName;

    @Override
    public String sayHello(String name) {
        return String.format("[%s] : Hello , %s", serviceName, name);
    }
}
